//
//  CCTestModel.h
//  Party
//
//  Created by its on 15/3/9.
//  Copyright (c) 2015年 coco. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Mantle/Mantle.h>
#import "CCUserInfo.h"
#import "CCPartyAddress.h"

@interface CCPartyModel : NSObject
@property (nonatomic, strong) NSString *session;
@property (nonatomic, strong) NSString *addressid;
@property (nonatomic, strong) NSString *footid;
@property (nonatomic, strong) NSNumber *count;
@property (nonatomic, strong) NSString *headid;
/**
 *  下拉刷新时调用此函数
 *
 *  @return
 */
- (RACSignal *) requestOld;

/**
 *  上拉刷新时调用此函数
 *
 *  @return
 */
- (RACSignal *) requestNew;
/**
 *  第一次进入界面时调用此函数
 *
 *  @return
 */
- (RACSignal *) requestAll;
@end


@interface CCPartyResultModel : MTLModel <MTLJSONSerializing>
@property (nonatomic, strong) NSNumber *hasMore;
@property (nonatomic, strong) NSError *error;
@property (nonatomic, strong) NSArray *dataArray;
@end


@interface CCPartyResult : MTLModel <MTLJSONSerializing>
@property (nonatomic, copy) NSString *activityID;
@property (nonatomic, copy) NSString *coverImage;
@property (nonatomic, copy) NSString *title;          
@property (nonatomic, copy) NSString *money;          //报名需要的钱数
@property (nonatomic, strong) NSNumber *followCount;  //收藏的人数
@property (nonatomic, copy) NSString *activityTime;   //活动时间
@property (nonatomic, strong) NSNumber *applyCount;   //报名人数
@property (nonatomic, strong) CCUserInfo *author;
@property (nonatomic, strong) NSString *address;
@end
